projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9b954f
)
Revert "Revert "Fix erasing cursor on top of raised boxes in NS port""
author
Po Lu
<luangruo@yahoo.com>
Wed, 10 Nov 2021 06:04:21 +0000
(14:04 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Wed, 10 Nov 2021 06:04:21 +0000
(14:04 +0800)
This reverts commit
7117bbc7aa905ae785fa564cb24c3fc75ef1d543
.
src/nsterm.m
patch
|
blob
|
history
diff --git
a/src/nsterm.m
b/src/nsterm.m
index ed0e7a2aae82a8b55dbef31028d4c7ccd1e8deb6..8ee5c03b97e966f580bf0eaa3a117d040c76ee49 100644
(file)
--- a/
src/nsterm.m
+++ b/
src/nsterm.m
@@
-3510,6
+3510,12
@@
ns_draw_relief (NSRect outer, int hthickness, int vthickness, char raised_p,
[(raised_p ? lightCol : darkCol) set];
+ if (top_p)
+ {
+ NSRectFill (NSMakeRect (NSMinX (outer), NSMinY (outer),
+ NSWidth (outer), hthickness));
+ }
+
if (top_p || left_p)
{
NSBezierPath *p = [NSBezierPath bezierPath];
@@
-3549,6
+3555,12
@@
ns_draw_relief (NSRect outer, int hthickness, int vthickness, char raised_p,
[p closePath];
[p fill];
}
+
+ if (bottom_p)
+ {
+ NSRectFill (NSMakeRect (NSMinX (outer), NSMaxY (inner),
+ NSWidth (outer), hthickness));
+ }
}